package com.study.profile;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class ProfileTest {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(MainConfigProfile.class);

        String[] beanDefinitionNames = context.getBeanDefinitionNames();

//        DataSource test = (DataSource)context.getBean("dataSourceTest");
//
//        DataSource dev = (DataSource)context.getBean("dataSourceDev");

        for (String name : beanDefinitionNames){

            System.out.println("beanName is ======================" + name);
        }
    }
}
